package com.htlwk.javapractice;

import java.util.Objects;

/**
 * @ClassName HouseBean
 * @Description TODO
 * @Author liaowenxiong
 * @Date 2024/12/25 19:27
 * @Version 1.0
 */
public class HouseBean {
    private String brand;
    private String name;
    private String price;

    public HouseBean() {

    }

    public HouseBean(String brand, String name, String price) {
        this.brand = brand;
        this.name = name;
        this.price = price;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        HouseBean houseBean = (HouseBean) o;
        return Objects.equals(brand, houseBean.brand) && Objects.equals(name, houseBean.name) && Objects.equals(price, houseBean.price);
    }

    @Override
    public int hashCode() {
        return Objects.hash(brand, name, price);
    }

    @Override
    public String toString() {
        return "HouseBean{" + "brand='" + brand + '\'' + ", name='" + name + '\'' + ", price='" + price + '\'' + '}';
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
